package com.gskj.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * @author :CodingFarmer_码农  Connor(康纳)_郭
 * @date : 13:21 20.5.15
 * @Company : http://www.gskj.com
 * @Version : 1.0
 */
// 排除 数据源的自动配置,启动不加载 数据库自动配置类
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient // 将服务注册到 nacos中
@ComponentScan(value = "com.gskj") //设置包扫描
@CrossOrigin // 跨域问题
public class OSSApplication {

    public static void main(String[] args) {
        SpringApplication.run(OSSApplication.class, args);
    }
}
